package com.dianjing.dianqun.dao.dianpai;

import org.apache.ibatis.annotations.Param;

import com.dianjing.dianqun.common.base.CrudMpper;
import com.dianjing.dianqun.model.DianPaiContentLike;

public interface DianPaiContentLikeMapper  extends CrudMpper<DianPaiContentLike>{
    /**
     *
     * @mbggenerated 2017-10-23
     */
    int deleteByPrimaryKey(Integer contentId);

    /**
     *
     * @mbggenerated 2017-10-23
     */
    int insert(DianPaiContentLike record);

    /**
     *
     * @mbggenerated 2017-10-23
     */
    int insertSelective(DianPaiContentLike record);

    /**
     *
     * @mbggenerated 2017-10-23
     */
    DianPaiContentLike selectByPrimaryKey(Integer contentId);

    /**
     *
     * @mbggenerated 2017-10-23
     */
    int updateByPrimaryKeySelective(DianPaiContentLike record);

    /**
     *
     * @mbggenerated 2017-10-23
     */
    int updateByPrimaryKey(DianPaiContentLike record);

	DianPaiContentLike selectLikeByUser(@Param("userId")Integer userId,@Param("contentId")Integer contentId);

	void cancelLikeByContentId(@Param("userId")Integer userId,@Param("contentId")Integer contentId);
}